<table>
  <tr>
    <th>team</th>
    <th>problem</th>
    <th>submitted</th>
    <th>language</th>
    <th>status</th>
  </tr> 
  <% for team in @teams %>
    <tr></tr>
    <%  for submission in team.submissions %>
      <tr>
        <td><%=team.name%></td>
        <td><%=submission.name%></td>
        <td><%=submission.submitted.asctime %></td>
        <td><%=submission.language%></td>
        <td><%=submission.status%></td>
        <td class="admin-edit"><%= link_to 'Edit', {:action => 'edit_submission', :submission => submission } %></td>
        <td class="admin-edit"><%= link_to 'Delete', { :action => 'destroy_submission', :submission => submission }, :confirm => 'Are you sure?', :method => :post %></td>
      </tr>
    <% end %>
  <% end %>
</table>
